 
<div class="title">My Account</div>
<div class='alert alert-info'>This information is private and will never be shared with other members</div>

<?php
$success = Yii::app()->user->getFlash('success');
if ($success) {
    ?>
    <div class='alert alert-success'><?php echo $success ?></div>
    <?php
}
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'user-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'clientOptions' => array(
	'validateOnSubmit' => true
    ),
    'htmlOptions' => array(
	'class' => 'form-horizontal'
    )
	));
?>
<div class='title-menu'>Private info</div>
<table>
    <tr>
	<td class='label-column-edit-user'>Username: </td>
	<td>
	    <?php echo $form->textField($model, 'username', array('disabled' => 'disabled')) ?>

	</td>
    </tr>
    <tr>
	<td class='label-column-edit-user'>Email: </td>
	<td>
	    <?php echo $form->textField($model, 'email') ?>
	    <?php echo $form->error($model, 'email') ?>
	</td>
    </tr>
    <tr>
	<td class='label-column-edit-user'>Mobile Phone: </td>
	<td>
	    <?php echo $form->textField($model, 'mobile'); ?>
	    <?php echo $form->error($model, 'mobile') ?>
	</td>
    </tr>
</table>			    		    

<div class='title-menu'>Location Info </div>
<table>
    <tr>
	<td class='label-column-edit-user'>City: </td>
	<td>
	    <?php echo $form->textField($model, 'city') ?>
	    <?php echo $form->error($model, 'city') ?>
	</td>
    </tr>
    <tr>
	<td class='label-column-edit-user'>State: </td>
	<td>
	    <?php echo $form->textField($model, 'state') ?>
	    <?php echo $form->error($model, 'state') ?>
	</td>
    </tr>
    <tr>
	<td class='label-column-edit-user'>Zip Code: </td>
	<td>
	    <?php echo $form->textField($model, 'postcode') ?>
	    <?php echo $form->error($model, 'postcode') ?>
	</td>
    </tr>
    <tr>
	<td class='label-column-edit-user'>Country: </td>
	<td>
	    <?php echo $form->dropDownList($model, 'country', Country::getSelectList()) ?>
	    <?php echo $form->error($model, 'country') ?>
	</td>
    </tr>
</table>

<div class='title-menu'>Password </div>

<a href='javascript:void(0)' id='show-pass' class='center-column-edit-user'><i class='icon-arrow-down'></i> Edit password</a>
<div id='wrap-edit-pass'>
    <table>
	<tr>
	    <td class='label-column-edit-user'>Old Pass</td>
	    <td>
		<?php echo $form->passwordField($model, 'oldpass'); ?>
		<?php echo $form->error($model, 'oldpass') ?>
	    </td>
	</tr>
	<tr>
	    <td class='label-column-edit-user'>New Password</td>
	    <td>
		<?php echo $form->passwordField($model, 'password'); ?>
		<?php echo $form->error($model, 'password') ?>
	    </td>
	</tr>
	<tr>
	    <td class='label-column-edit-user'>Re-Password</td>
	    <td>
		<?php echo $form->passwordField($model, 'repassword'); ?>
		<?php echo $form->error($model, 'repassword') ?>
	    </td>
	</tr>	
    </table>
</div>
<input type='submit' name='save' value='Save changes' class='center-column-edit-user btn btn-primary'/>
<?php
$this->endWidget()?>